PHLEGM v9 Revision r3 - FreeBASIC builtin identifier repair
Revision timestamp: 2026-1011-2055-1240

Input: PHLEGM v9 r2 Developer Distribution and compiler logs
PHLEGM-v9-Compiler-Logs-2026-1011-2051-1382.zip.

Observed: Windows 32bit/64bit OpenGL/D3D11 each failed in
src/lib/regex/regex.bas at lines 106 and 361. FreeBASIC treats ERR
and EXP as builtins, so declaring 'err' and 'exp' as variables
causes duplicate-definition errors. The later END IF/PRIVATE errors
are fallout from the invalid EXP expression.

FIX: Rename 'err' to 'pcreCompileError' in regex.compile including
error-message/error-code pointer propagation.
FIX: Rename 'exp' to 'regexExpression' across four AA/FBVM regex
native callbacks (test, find, replace, count).
FIX: Added a regression guard for ERR/EXP identifier collisions in
tests/Regex-Avoid-FreeBasic-Builtin-Identifiers.Tests.ps1.
PRESERVE: Generic regex.lib backend and AA's existing embedded FBVM.
PRESERVE: Core definition parser, runtime micro-code compile boundaries,
3-script bootstrap, installer snapshot and existing v8 GUI behavior.

Validation: ZIP CRC, untouched bootstrap payload bytes, static source
checks, numeric revision metadata, installer snapshot equivalence,
CRLF text/LF shell script policy, no shipped Python files.

NOT RUN: Native FreeBASIC or PowerShell validation (toolchains
unavailable here). Next action: compile again; further errors
may only become visible after these syntax blockers are resolved.
